using System;
using System.ComponentModel;
using System.Linq;

using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

namespace ApiTest2.Entitys
{
    /// <summary>
    /// 组件样式
    /// </summary>  
    /// <remarks>
    /// <![CDATA[ENGINE=InnoDB  COMMENT='组件样式']]>
    /// </remarks>
    [DbSource("Default"), Serializable]
    public class AppComponentStyle
    {
        /// <summary>
        /// style_id
        /// </summary>
        /// <remarks>
        /// <![CDATA[int NOT NULL COMMENT '']]>
        /// </remarks>
        [Primary]
        public int StyleId { get; set; }

        /// <summary>
        /// component_id
        /// </summary>
        /// <remarks>
        /// <![CDATA[int NOT NULL COMMENT '']]>
        /// </remarks>
        [Column(false)]
        public int ComponentId { get; set; }

        /// <summary>
        /// 样式代号
        /// </summary>
        /// <remarks>
        /// <![CDATA[varchar(32) DEFAULT NULL COMMENT '样式代号']]>
        /// </remarks>
        [Column(32)]
        [DisplayName("样式代号")]
        public string StyleCode { get; set; }

        /// <summary>
        /// 预览图
        /// </summary>
        /// <remarks>
        /// <![CDATA[varchar(64) DEFAULT NULL COMMENT '预览图']]>
        /// </remarks>
        [Column(64)]
        [DisplayName("预览图")]
        public string StyleImg { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        /// <remarks>
        /// <![CDATA[varchar(255) DEFAULT NULL COMMENT '描述']]>
        /// </remarks>
        [Column(255)]
        [DisplayName("描述")]
        public string Description { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        /// <remarks>
        /// <![CDATA[int NOT NULL COMMENT '排序']]>
        /// </remarks>
        [Column(false)]
        [DisplayName("排序")]
        public int Sort { get; set; }

    }
}
